home *** CD-ROM | disk | FTP | other *** search
- Path: news.production.compuserve.com!news
- From: Holger Maier <100336.3326@CompuServe.COM>
- Newsgroups: comp.lang.c++
- Subject: Re: Q:order of evaluation
- Date: 17 Jan 1996 06:43:23 GMT
- Organization: DLZ Heidelberg
- Message-ID: <4di5qb$qda$1@mhadg.production.compuserve.com>
- References: <4dfhlu$a33$1@mhafn.production.compuserve.com>
-
- Please note that in
- int i=1;int j=i+(i+=1);
- the value of i is modified only once. The ARM states that an
- expression where a value is modified more than once is undefined
- (ie: i = i++; ). But since i is not modified multiply and assignment
- returns the assigned value, this expression should be reasonable.
- Any comments??
- Holger
-